// let timer = new egret.Timer(100,10);
// let timer2 = new egret.Timer(100,10);

// timer.addEventListener(egret.TimerEvent.TIMER,function(){
// 	//
// },this)
// timer2.addEventListener(egret.TimerEvent.TIMER,function(){
// 	//
// },this)

// egret.startTick(()=>{
// 	//...1s触发60次

// 	return false
// },this)

// // 30次 index里面的帧
// this.addEventListener(egret.Event.ENTER_FRAME,function(){
// 	//1s触发30次  index里面的帧

// },this)
class Stone extends eui.Image{
	public constructor(picture,shijian) {
		super();
		let texture = RES.getRes(picture);
		this.source = texture;
		this.addEventListener(egret.Event.ADDED_TO_STAGE, function () {
			let stageW = this.stage.stageWidth;
			//图片降落的x轴位置
			this.x = Math.floor(Math.random()*stageW)-this.width;
			this.startTween(shijian);
		},this)
	}
	public score=0;//
	private pictureArr;
	public startTween(shijian){
		egret.Tween.get(this).to({y:this.stage.stageHeight+this.height},shijian)
	}
}